Northwoods.GoSilverlight 1.3.5 Assembly
FindNodeByKey Method
See Also  Send Feedback
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class : FindNodeByKey Method

key
a value of null for this argument will result in the default value for NodeType
Given a key, find the node data with that key.

Syntax

Visual Basic (Declaration) 
Public Function FindNodeByKey( _
   ByVal key As NodeKey _
) As NodeType
C# 
public NodeType FindNodeByKey( 
   NodeKey key
)

Parameters

key
a value of null for this argument will result in the default value for NodeType

Return Value

a NodeType; the value will be the default for the type if no such node data is known to be in this model

Remarks

This is used for model navigation and graph traversal.

If NodeKeyIsNodeData is true, this just converts the key argument to the NodeType type and returns it.

Requirements

See Also

© 2012 All Rights Reserved.